package com.testmanager.testmananger.quantitative.web;


import com.testmanager.testmananger.foundation.dto.ConstantDto;
import com.testmanager.testmananger.quantitative.service.ConstantInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
@RequestMapping("/manager")
public class ConstatnInfoResource {

    @Autowired
    ConstantInfoService constantInfoService;
    @GetMapping("getDemandType")
    public List<ConstantDto> getDemandType(){
        return  constantInfoService.getDemandType();
    }

    @GetMapping("getIterationStatus")
    public List<ConstantDto> getIterationStatus(){
        return  constantInfoService.getIterationStatus();
    }
    @GetMapping("getBugStatus")
    public List<ConstantDto> getBugStatus(){
        return constantInfoService.getBugStatus();
    }

    @GetMapping("getBugSearchStatus")
    public List<ConstantDto> getBugSearchStatus(){
        return constantInfoService.getBugSearchStatus();
    }

    @GetMapping("getBugLevel")
    public List<ConstantDto> getBugLevel(){
        return constantInfoService.getBugLevel();
    }


}
